-- CALC_PRE_PUZZLE_DUNGEON_IS_UNLOCK
-- 判断前置拼图关卡是否开启

return function(areaId)
    local preDungeon = {[1003] = 10041,};

    local dungeonId = preDungeon[areaId];

    if dungeonId == nil then
        return true;
    end

    if DungeonAreaM.isDungeonOpened(ME.user, dungeonId) or DungeonAreaM.isDungeonPassed(ME.user, dungeonId) then
        return true;
    end

    return false;
end